import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Cart from '../Newcomponents/Cart'
import Home from '../Newcomponents/Home'
import Search from '../Newcomponents/Search'
import Member from '../Newcomponents/Member'
import NewList from '@/components/news/NewList'
import NewContent from '@/components/news/Newcontent'
import Images from '../components/images/Images'
Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',redirect:'/home'},
    {path: '/cart',component:Cart},
    {path: '/home',component:Home},
    {path: '/search',component:Search},
    {path: '/member',component:Member},
    {path: '/home/newlist',component:NewList},
    {path: '/home/newcontent/:id',component:NewContent},
    {path: '/imgshare/images',component:Images},
    
  ],
  linkActiveClass:'mui-active'
})
